
package com.gdziarmaga.webshopwebservices;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.4.1
 * 2011-11-07T18:41:48.508+01:00
 * Generated source version: 2.4.1
 * 
 */
public final class WebShopWebServices_WebShopWebServicesSOAP_Client {

    private static final QName SERVICE_NAME = new QName("http://www.gdziarmaga.com/WebShopWebServices/", "WebShopWebServices");

    private WebShopWebServices_WebShopWebServicesSOAP_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = WebShopWebServices_Service.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        WebShopWebServices_Service ss = new WebShopWebServices_Service(wsdlURL, SERVICE_NAME);
        WebShopWebServices port = ss.getWebShopWebServicesSOAP();  
        
        {
        System.out.println("Invoking bookByISBN...");
        java.lang.String _bookByISBN_isbn = "";
        com.gdziarmaga.webshopwebservices.BookByISBNResponse.BookDetail _bookByISBN__return = port.bookByISBN(_bookByISBN_isbn);
        System.out.println("bookByISBN.result=" + _bookByISBN__return);


        }
        {
        System.out.println("Invoking listBooksBySection...");
        java.lang.String _listBooksBySection_section = "";
        java.util.List<com.gdziarmaga.webshopwebservices.ListBooksBySectionResponse.BookDetail> _listBooksBySection__return = port.listBooksBySection(_listBooksBySection_section);
        System.out.println("listBooksBySection.result=" + _listBooksBySection__return);


        }
        {
        System.out.println("Invoking listReviewsByBookISBN...");
        java.lang.String _listReviewsByBookISBN_isbn = "";
        java.util.List<com.gdziarmaga.webshopwebservices.ListReviewsByBookISBNResponse.ReviewDetail> _listReviewsByBookISBN__return = port.listReviewsByBookISBN(_listReviewsByBookISBN_isbn);
        System.out.println("listReviewsByBookISBN.result=" + _listReviewsByBookISBN__return);


        }

        System.exit(0);
    }

}
